import { log } from '../core/logger';
import themeManager from '../core/theme';

/**
 * 主题变更事件处理器
 * 事件名: theme:changed
 */
export default (theme: any): void => {
  log.info('处理主题变更事件:', theme);
  themeManager.setTheme(theme);
};
